package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //创建分页查询方法
    Page<Dish> getPage(String name, Integer pageNum, Integer pageSize);
    //添加方法
    void save(Dish dish);

    Dish findById(Long id);

    void update(Dish dish);

    void delete(Long[] ids);

    void setStatus(Integer type, Long[] ids);
//    前端回显
    List<Dish> getListApp(Long categoryId, Integer status);
//菜单栏显示
    List<Dish> getList(Long categoryId, Integer status, String name);
}
